// 通过interface 来定义索引类型
interface IndexLanguage {
  [index: number]: string;
}

const frontLangeage: IndexLanguage = {
  0: "HTML",
  1: "CSS",
  2: "Javascript",
  3: "Vue",
};

interface ILanguageYear {
  [name: string]: number;
}

const languageYear: ILanguageYear = {
  "C": 1927,
  "Java": 1995,
  "Javascript": 1996,
  "TypeScript": 2014
}
